import axios from 'axios'
import ElementUI from 'element-ui' //element-ui的全部组件
import Vue from 'vue'
import App from './App.vue'
if (process.env.NODE_ENV === 'development') {
	require('element-ui/lib/theme-chalk/index.css')
}
const dayjs = require('dayjs')
Vue.use(ElementUI) //使用elementUI

// axios instence
const instance = axios.create({
	headers: { 'Content-Type': 'application/json' },
})
Vue.prototype.$http = instance
Vue.prototype.$dayjs = dayjs

Vue.config.productionTip = false

new Vue({
	render: (h) => h(App),
}).$mount('#app')
